package org.cying.main.feign;

import org.cying.main.domain.SampleResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Sign Server 远程调用 Token Server 接口
 * @author Cying
 */
@Component
@FeignClient(value = "Client-Server")
public interface SignFeignClient {

    @GetMapping(value = "/auth/token")
    SampleResult<Boolean> authToken(
            @RequestParam("token") Integer token
    );

}
